package com.leza.myapplication.onenetapi;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

public class EntityData {
    @JSONField(name="at")
    public Date date;
    public float value;
    public String id;

    public  EntityData() {};

    public EntityData(float value, String id) {
        date = new Date();
        this.value = value;
        this.id = id;
    }

    @Override
    public String toString() {
        return "EntityData{" +
                "date=" + date +
                ", value=" + value +
                ", id='" + id + '\'' +
                '}';
    }
}
